import {
  createStoreBindings
} from "mobx-miniprogram-bindings";
import {
  cartStore
} from '../store/cart.js'

module.exports = {
  onLoad(options) {

    this.storeBindings = createStoreBindings(this, {
      store: cartStore,
      fields: ['cartList'],
      actions: ['addToCart']
    })
  }
}